package com.bw.service;

import com.bw.bean.Stu;
import com.bw.mapper.StuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuServiceImpl implements StuService {

    @Autowired
    StuMapper stuMapper;

    @Override
    public int add(Stu stu) {
        return stuMapper.add(stu);
    }

    @Override
    public List<Stu> getList() {
        return stuMapper.getList();
    }
}
